import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
	linkActiveClass: 'active',
	routes: [{
			path: '/',
			redirect: "/login"
		},
    {
        path: '/login',
        component: () => import('@/pages/Login/Login.vue')
    },
		{
			path: '/login',
			component: () => import('@/pages/Login/Login.vue')
		},
		{
			path: '/index',
			component: () => import('@/pages/Index/Index.vue'),
			children: [{
					path: "/my",
					component: () => import('@/router/My/My.vue'),
					// name: '1-1'
          name: 'My'
				},
        //充值页面
				{
					path: "/vouche",
					component: () => import('@/router/Vouche/Vouche.vue'),
					name: '1-2'
				},
        //流程页面
				{
					path: "/flow",
					component: () => import('@/router/Flow/Flow.vue'),
					name: '1-3'
				},
				{
					path: "/trillbusiness",
					component: () => import('@/router/Trillbusiness/Trillbusiness.vue'),
					name: '2-1'
				},
				{
				  path: "/wellquicklybusiness",
				  component: () => import('@/router/Wellquicklybusiness/Wellquicklybusiness.vue'),
				  name: '2-2'
				},
        //D业务
				{
				  path: "/Dbusiness",
				  component: () => import('@/router/Dbusiness/Dbusiness.vue'),
				  name: '2-3'
				},
        //K业务
				{
				  path: "/Kbusiness",
				  component: () => import('@/router/Kbusiness/Kbusiness.vue'),
				  name: '2-4'
				},
        //D订单
				{
					path: "/trillorders",
					component: () => import('@/router/Trillorders/Trillorders.vue'),
					name: '3-1'
				},
        //K订单
				{
				  path: "/wellquicklyorders",
				  component: () => import('@/router/Wellquicklyorders/Wellquicklyorders.vue'),
				  name: '3-2'
				},
        //普通用户
				{
					path: "/domesticconsumer",
					component: () => import('@/router/domesticconsumer/domesticconsumer.vue'),
					name: '4-1'
				},
        //代理配置
				{
					path: "/proxyconfiguration",
					component: () => import('@/router/Proxyconfiguration/Proxyconfiguration.vue'),
					name: '4-2'
				},
        //充值记录
				{
					path: "/rechargerecord",
					component: () => import('@/router/rechargerecord/rechargerecord.vue'),
					name: '5-1'
				},
        //返佣记录
				{
					path: "/commissionrecord",
					component: () => import('@/router/Commissionrecord/Commissionrecord.vue'),
					name: '5-2'
				},
				{
					path: "/xiangqing",
					component: () => import('@/router/xiangqing/xiangqing.vue'),
					name: '5-9'
				},
        //体现记录
				{
					path: "/withdrawalrecord",
					component: () => import('@/router/Withdrawalrecord/Withdrawalrecord.vue'),
					name: '5-3'
				},
				{
					path: "/withdrawalrecord",
					component: () => import('@/router/Withdrawalrecord/Withdrawalrecord.vue'),
					name: '5-4'
				},
				{
					path: "/detailPage",
					component: () => import('@/router/detailPage/detailPage.vue'),
					name: '10-2'
				},
			]
		},
		{
			path: '/Register',
			component: () => import('@/pages/Register/Register.vue')
		},
		{
			path: '/ChangePassword',
			component: () => import('@/pages/ChangePassword/ChangePassword.vue')
		},
	]
})
